package cn.itcast.daggerdemo;

import android.app.Application;

/**
 * Created by Administrator on 2016/8/4.
 */
public class MyApplication extends Application {

    private AppComponent appComponent;

    @Override
    public void onCreate() {
        super.onCreate();
        appComponent = DaggerAppComponent.builder().appModule(new AppModule()).build();
    }

    public AppComponent getAppComponent() {

        return appComponent;
    }
}
